package com.sakura.util.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * Created by apple on 2018/8/9.
 */
@Service
public class IncrService {
    @Autowired
    private RedisTemplate redisTemplate;

    //限速器
    public static boolean flowControl(String key, String max){
        //redisTemplate.get
        return false;
    }

    public static void main(String[] args) {
        String.valueOf(null);
    }
}
